<?php
/**
 * Created by JetBrains PhpStorm.
 * File: RoleModel.class.php
 * User: Xnfy520@gmail.com
 * Date: 12-3-12
 * Time: 下午2:39
 */

	class RoleModel extends RelationModel{

		protected $_link = array(

			'RoleUser'=>array(
				'mapping_type'=>HAS_MANY,
				'class_name'=>'RoleUser',
				'mapping_name'=>'roleuser',
				'foreign_key'=>'role_id',
			),

		);

		protected $_validate = array(

			array('name', 'require', '分组名不能为空', 1),
		//	array('name', '2, 7', '分组名长度不能少于2位, 大于7位', 1, 'length'),

		);

	}